<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="DiscountAdd.aspx.cs" Inherits="Tathata.Web.Administration.Administration_DiscountAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="DecimalTextBox" Src="Modules/DecimalTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="Modules/SimpleTextBox.ascx" %>
<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <div>
        <table class="adminContent">
            <tr>
                <td class="adminTitle">
                    Name:
                </td>
                <td class="adminData">
                    <nopCommerce:SimpleTextBox runat="server" ID="txtName" CssClass="adminInput" ErrorMessage="Name is required">
                    </nopCommerce:SimpleTextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Use percentage:
                </td>
                <td class="adminData">
                    <asp:CheckBox runat="server" ID="cbUsePercentage"></asp:CheckBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Discount percentage:
                </td>
                <td class="adminData">
                    <nopCommerce:DecimalTextBox runat="server" ID="txtDiscountPercentage" CssClass="adminInput"
                        Value="0" RequiredErrorMessage="Discount percentage is required" RangeErrorMessage="The value must be from 0 to 100"
                        MinimumValue="0" MaximumValue="100"></nopCommerce:DecimalTextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Discount amount:
                </td>
                <td class="adminData">
                    <nopCommerce:DecimalTextBox runat="server" ID="txtDiscountAmount" CssClass="adminInput"
                        Value="0" RequiredErrorMessage="Discount amount is required" MinimumValue="0" MaximumValue="999999"
                        RangeErrorMessage="The value must be from 0 to 999999"></nopCommerce:DecimalTextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Start date:
                </td>
                <td class="adminData">
                    <asp:TextBox runat="server" ID="txtStartDate" />
                    <asp:ImageButton runat="Server" ID="iStartDate" ImageUrl="~/images/Calendar_scheduleHS.png"
                        AlternateText="Click to show calendar" /><br />
                    <ajaxToolkit:CalendarExtender ID="cStartDateButtonExtender" runat="server" TargetControlID="txtStartDate"
                        PopupButtonID="iStartDate" />
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    End date:
                </td>
                <td class="adminData">
                    <asp:TextBox runat="server" ID="txtEndDate" />
                    <asp:ImageButton runat="Server" ID="iEndDate" ImageUrl="~/images/Calendar_scheduleHS.png"
                        AlternateText="Click to show calendar" /><br />
                    <ajaxToolkit:CalendarExtender ID="cEndDateButtonExtender" runat="server" TargetControlID="txtEndDate"
                        PopupButtonID="iEndDate" />
                </td>
            </tr>
            <tr>
                <td align="left" colspan="2">
                    <asp:Button ID="AddButton" runat="server" Text="Add" CssClass="adminButton" OnClick="AddButton_Click">
                    </asp:Button>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
